%%%-----------------------------------------------------------------------------
%%% @doc
%%% apn_server main module.
%%%
%%% @end
%%%-----------------------------------------------------------------------------
-module(main).
-author("turtle").

%% API
-export([start/0]).
% sasl, syntax_tools, ssl, mnesia, os_mon, inets, goldrush, lager, esockd, mochiweb
start() ->
    Apps = [crypto, inets, asn1, public_key, ssl, gproc, compiler, syntax_tools, goldrush, lager],
    lists:foreach(
        fun(App) ->
            Res = application:start(App),
            io:format("App:~p, status:~p~n", [App, Res])
        end, Apps),
    apn_server:start().